package cn.ghx.xboot.mapper;

import cn.ghx.xboot.item.Item;
import cn.ghx.xboot.stat.dto.StatTotalDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

@Mapper
public interface ItemFavUserMapper {

    Boolean removeByFav(@RequestParam("itemId") String itemId, @RequestParam("openid") String openid);

    Boolean saveFav(@RequestParam("itemId") String itemId,@RequestParam("openid")  String openid);

    Boolean isFav(@RequestParam("itemId") String itemId,@RequestParam("openid")  String openid);

    Page<Item> query(@RequestParam("keyword") String keyword, @RequestParam("openid") String openid, Page<Item> page);
}
